package com.demo.one_3.factory.impl;

import com.demo.one_3.factory.IDFactory;
import com.demo.one_3.service.IDami;
import com.demo.one_3.service.impl.DKeyboardService;
import com.demo.one_3.service.impl.DMouseService;

/**
 * @author SunChangSheng
 * @apiNote 具体工厂-大米电子厂
 * @since 2021/12/15 17:30
 */
public class DFactoryService implements IDFactory {
    @Override
    public IDami mouse() {
        return new DMouseService();
    }

    @Override
    public IDami keyboard() {
        return new DKeyboardService();
    }
}
